#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include"list.h"
using namespace std;


int main()
{
	hjc::list<int> lt;
	lt.push_back(1);
	lt.push_back(1);
	lt.push_back(1);
	lt.push_back(1);

	lt.push_front(2);
	lt.push_front(3);
	lt.push_front(4);

	//lt.pop_back();
	//lt.pop_back();

	//lt.pop_front();
	//lt.pop_front();
	//lt.pop_front();

	auto it = lt.begin();


	lt.erase(--lt.end());


	for (auto e : lt)
	{
		cout << e << " ";
	}

	cout << endl;
	return 0;
}